#ifndef PACKET_H_
#define PACKET_H_

#ifdef _WIN32
	typedef int socklen_t;
#endif

namespace Network {

/*
 * Klasa przechowujaca strukture pojedynczego pakietu
 */
class Packet {
public:
	unsigned char type_;
	unsigned char msgNo_;
	unsigned char uid_;
	socklen_t length_;
	std::string from_;
	std::string msg_;

	Packet() {}
	Packet(unsigned char type) : type_(type), msgNo_(0), uid_(0), length_(0), from_(""), msg_("") {}
	Packet(unsigned char type, std::string msg) : type_(type), msgNo_(0), uid_(0), length_(0), from_(""), msg_(msg) {}
	~Packet() {}
}; //class Packet

} //namespace Network

#endif /* PACKET_H_ */
